<?php
return array(
    'method' => 'POST',
	'action' => '/users/login',
    'elements' => array(
        'user_login' => array(
			'type' => 'text',
			'options' => array(
				'order' => 10,
				'label' => 'Логин',
				'required' => true,
				'filters' => array(
					'StringTrim',
				),
				'validators' => array(
					array(
						'validator' => 'StringLength',
						'breakChainOnFailure' => true,
						'options' => array('max' => 255)
					),
				),
			)
		),
        'user_password' => array(
			'type' => 'password',
			'options' => array(
				'order' => 20,
				'label' => 'Пароль',
				'required' => true,
				'filters' => array(
					'StringTrim',
				),
				'validators' => array(
					array(
						'validator' => 'StringLength',
						'breakChainOnFailure' => true,
						'options' => array('max' => 64)
					),
				),
			)
		),
        'user_remember' => array(
			'type' => 'checkbox',
			'options' => array(
				'order' => 30,
				'label' => 'Запомнить меня на этом компьютере',
				'required' => true,
				'filters' => array(
					'Int',
				),
				'validators' => array(
					array(
						'validator' => 'InArray',
						'breakChainOnFailure' => true,
						'options' => array(
							'haystack' => array(0,1),
							'strict' => true,
						),
					),
				),
			)
		),
		'submit' => array(
            'type' => 'submit',
            'options' => array(
                'order' => 50,
                'ignore' => true,
                'title' => 'Войти',
            )
        ),
    )
);
?>